package com.ruoyi.teacher.mapper;

import java.util.Date;
import java.util.List;

import com.ruoyi.help.domain.StudentAfter;
import com.ruoyi.teacher.domain.DailyPaper;
import com.ruoyi.teaching.domain.TeacherStalke;
import org.apache.ibatis.annotations.Param;

/**
 * 日报Mapper接口
 * 
 * @author ruoyi
 * @date 2023-05-19
 */
public interface DailyPaperMapper 
{
    /**
     * 查询日报
     * 
     * @param id 日报主键
     * @return 日报
     */
    public DailyPaper selectDailyPaperById(Long id);

    /**
     * 查询日报列表
     * 
     * @param dailyPaper 日报
     * @return 日报集合
     */
    public List<DailyPaper> selectDailyPaperList(DailyPaper dailyPaper);

    /**
     * 新增日报
     * 
     * @param dailyPaper 日报
     * @return 结果
     */
    public int insertDailyPaper(DailyPaper dailyPaper);

    /**
     * 修改日报
     * 
     * @param dailyPaper 日报
     * @return 结果
     */
    public int updateDailyPaper(DailyPaper dailyPaper);

    /**
     * 删除日报
     * 
     * @param id 日报主键
     * @return 结果
     */
    public int deleteDailyPaperById(Long id);

    /**
     * 批量删除日报
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDailyPaperByIds(Long[] ids);

    List<DailyPaper> findByTeacherIds(@Param("teacherIds") Long teacherIds, @Param("time") Date time);

    List<StudentAfter> selectStudentAfterListById(Long id);

    List<StudentAfter> selectStudentAfterListByStuName(String stuName);

    List<TeacherStalke> selectTeacherStalkeListById(String studentsname);
}
